import FileSaver from "file-saver";


export function exportJson(data: object, name?: string) {
  const content = JSON.stringify(data, null, 4);
  const blob = new Blob([content]);
  FileSaver.saveAs(blob, `${name || 'BOM'}.json`);
}
